GetPersistentObjectID
The GetPersistentObjectID method returns the scripting ID of the specified part or frame.
ODPersistentObjectID GetPersistentObjectID ( in ODPersistentObject object, in ODObjectType objectType);
object
- A reference to the persistent object.
objectType
- The type of the persistent object. The object type must be either a part (
kODPartObject
) or a frame (kODFrameObject
).- return value
- The ID, to be used for scripting purposes, of the specified part or frame.
DISCUSSION
You can call this method to obtain the ID that identifies the specified part or frame for scripting purposes.EXCEPTIONS
kODErrInvalidPersistentObject
- This specified persistent object is not valid.
SEE ALSO
TheODObjectType
type (page 903).
TheODPersistentObjectID
type (page 900).
TheODDraft::AcquirePersistentObject
method (page 157).
"Default Object Accessors" on page 421 in OpenDoc Programmer's Guide.
"Using Persistent Object ID" on page 439 in OpenDoc Programmer's Guide.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help